#ifndef FLASH_H
#define FLASH_H
#include "ch32f20x.h"

#define    DATA_ADDRESS_START       0x0803C000
#define    DATA_ADDRESS_END         0x0803FFFF

#define    PAGE_SIZE                256

#define    SECTOR_SIZE              2048

#define    NET_PARAM_ADDR           0x0803C010      
#define    MQTT_AUTH_ADDR           0x0803C110



void FlashWrite(uint32_t addr, uint8_t *data, uint16_t len);
void FlashRead(uint32_t addr, uint8_t *data, uint16_t len);

#endif



